package com.weipai.demo.service;


import com.weipai.demo.model.DUser;
import com.weipai.demo.model.LoansManager;
import com.weipai.demo.util.Response;

public interface UserService {
    //后台用户信息验证
    DUser getUserByLoginName(String userName);

    //信贷经理信息验证
    LoansManager getLoanByLoginName(String userName);

    DUser getUserByLoginUserId(String userId);

    Response login(String userName, String password, int type);

    //信贷经理登录
    Response loginfront(String userName, String password, int type);

    //用户注册
    Response saveUser(String userName, String password, Integer type, String pictureUrl, String nickName,String payStatus);

    //退出登录
    Response loginOut();

    //管理员重置密码
    Response resetUserPassword(String userName, String oldPassword, String newPassword, String twoPassword);

}
